<?php
    require('db_connection.php');
    $page = 0;
    $limit = 5;
    $results = mysql_query("SELECT * FROM tblcollection ORDER BY materialID ASC LIMIT $page, $limit");
   // $result = mysql_query($query);
    
    while($row = mysql_fetch_array($results))
    {
      $materialID = $row['materialID'];
      echo $materialID;
    }
    
?>
